<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="expect.installation.html">« 安装</a></li>
      <li style="float: right;"><a href="expect.resources.html">资源类型 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="expect.setup.html">安装/配置</a></li>
    <li>运行时配置</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="expect.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  In order to configure expect extension, there are configuration options
  in the <a href="configuration.file.html" class="link">configuration file</a> <var class="filename">php.ini</var>.
  <table class="doctable table">
   <caption><strong>Expect 配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>Changelog</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="expect.configuration.html#ini.expect.timeout" class="link">expect.timeout</a></td>
      <td>&quot;10&quot;</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="expect.configuration.html#ini.expect.loguser" class="link">expect.loguser</a></td>
      <td>&quot;1&quot;</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="expect.configuration.html#ini.expect.logfile" class="link">expect.logfile</a></td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="expect.configuration.html#ini.expect.match-max" class="link">expect.match_max</a></td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

  有关 PHP_INI_* 样式的更多详情与定义，见 <a href="configuration.changes.modes.html" class="xref">配置可被设定范围</a>。
 </p>
 
 <p class="para">这是配置指令的简短说明。</p>
 
 <p class="para">
  <dl>
   
    <dt id="ini.expect.timeout">
     <code class="parameter">expect.timeout</code>
     <span class="type">int</span>
    </dt>

    <dd>

     <p class="para">
      The timeout period for waiting for the data, when using the
      <span class="function"><a href="function.expect-expectl.html" class="function">expect_expectl()</a></span> function.
     </p>
     <p class="para">
      A value of &quot;-1&quot; disables a timeout from occurring.
     </p>
     <blockquote class="note"><p><strong class="note">注意</strong>: 
      <p class="para">
       A value of &quot;0&quot; causes the <span class="function"><a href="function.expect-expectl.html" class="function">expect_expectl()</a></span>
       function to return immediately.
      </p>
     </p></blockquote>
    </dd>

   

   
    <dt id="ini.expect.loguser">
     <code class="parameter">expect.loguser</code>
     <span class="type">bool</span>
    </dt>

    <dd>

     <p class="para">
      Whether expect should send any output from the spawned process to stdout.
      Since interactive programs typically echo their input, this usually suffices
      to show both sides of the conversation.
     </p>
    </dd>

   

   
    <dt id="ini.expect.logfile">
     <code class="parameter">expect.logfile</code>
     <span class="type">string</span>
    </dt>

    <dd>

     <p class="para">
      Name of the file, where the output from the spawned process will be
      written. If this file doesn&#039;t exist, it will be created.
     </p>
     <blockquote class="note"><p><strong class="note">注意</strong>: 
      <p class="para">
       If this configuration is not empty, the output is written regardless of
       the value of <a href="expect.configuration.html#ini.expect.loguser" class="link">expect.loguser</a>.
      </p>
     </p></blockquote>
    </dd>

   

   
    <dt id="ini.expect.match-max">
     <code class="parameter">expect.match_max</code>
     <span class="type">int</span>
    </dt>

    <dd>

     <p class="para">
      Changes default size (2000 bytes) of the buffer used to match asterisks
      in patterns.
     </p>
    </dd>

   

  </dl>

 </p>
</div></div></div></body></html>